import { defineStore } from "pinia"
import { getLanguage } from '@/language';
export const useLangStore = defineStore('lang', {
  state: () => ({
    language: getLanguage()
  }),
  actions: {
    setLanguage(lang) {
      this.language = lang
      localStorage.setItem('lang',lang)
    }
  }
})

 


